﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GaugeEngine
{
    public class GameTime
    {
        private DateTime m_startTime;

        public DateTime StartTime
        {
            get { return m_startTime; }
        }

        public TimeSpan ElapsedTime
        {
            get
            {
                TimeSpan output = DateTime.Now - LastCheck;
                LastCheck = DateTime.Now;
                return output;
            }
        }

        public DateTime LastCheck;

        public GameTime()
        {
            m_startTime = DateTime.Now;
        }
    }
}
